package com.eliza.databind.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.eliza.databind.R
import com.eliza.databind.databinding.ActivityImgAdapterBinding

class ImgAdapterActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_img_adapter)
        var dbv = DataBindingUtil.setContentView<ActivityImgAdapterBinding>(
            this,
            R.layout.activity_img_adapter
        )
        dbv.netImg = "https://blog.yorek.xyz/assets/images/favicon.webp"
//        dbv.netImg = ""
        dbv.imgResId = R.drawable.ic_error
    }
}